<div>
	<form method="post" id="edit_${action_id}" name="edit_${action_id}" >
	<input type="hidden" name="entity.id" id="entity.id" value="<#if entity??>${entity.id?default('')}</#if>" />
	<input type="hidden" name="entity.gmtCreate" id="entity.gmtCreate" value="<#if entity??>${entity.gmtCreate?default('')}</#if>" />
	<input type="hidden" name="entity.parentId" id="entity.parentId" value="<#if entity??>${entity.parentId?default('')}</#if>" />
	<input type="hidden" id="hid_name" name="orgin_name"  value="${entity.name?default('')}"  class="easyui-validatebox"   />
    <table class="form-table" cellpadding=3>
        <tr>
            <td>${action.getDatagridTitle('name')}:</td>
            <td><input id="en_name" name="entity.name" value="${entity.name?default('')}" type="text" style="width: 300px;" class="easyui-validatebox" data-options="required:true,validType:'length[0,64]'"   /></td>
        </tr>
        <tr>
            <td>${action.getDatagridTitle('address')}:</td>
            <td><input id="entity.address" type="text" value="${entity.address?default('')}" style="width:300px;" name="entity.address"  class="easyui-validatebox" data-options="validType:'length[0,500]'"   ></input></td>
        </tr>
        <tr>
            <td>${action.getDatagridTitle('mobile')}:</td>
            <td><input id="entity.mobile" type="text" value="${entity.mobile?default('')}" style="width:300px;" name="entity.mobile"  class="easyui-validatebox" data-options="validType:'length[0,20]'" ></input></td>
        </tr>
        <tr>
            <td>${action.getDatagridTitle('linkMan')}:</td>
            <td><input id="entity.linkMan" type="text" value="${entity.linkMan?default('')}" style="width:300px;" name="entity.linkMan"  class="easyui-validatebox" data-options="validType:'length[0,32]'" ></input></td>
        </tr>
        <tr>
            <td>${action.getDatagridTitle('regionId')}:</td>
            <td>
            	<select name="entity.regionId" id="_searcher_eq_region_${action_id}" style="width:150px;" class="easyui-combotree" data-options="editable:false,value:'${entity.regionId}',url:'${request.contextPath}${namespace?default('')}/mp/catalog/catalog-datagrid.json?key=region',animate:true" />
            	<a href="javascript:;;" onclick="$('#_searcher_eq_region_${action_id}').combotree('clear');" title="清除" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-undo'" ></a>
            </td>
        </tr>
        <tr>
            <td>${action.getDatagridTitle('state')}:</td>
            <td>
            	<select id="entity.state" name="entity.state"  class="easyui-combobox" data-options="required:true" >
            		<#list states as state>
            		<option value="${state.state}" <#if entity.state==state.state>selected</#if> >${action.getDatagridTitle('state.'+state.name())}</option>
            		</#list>
            	</select>
            </td>
        </tr>
    </table>
	</form>
</div>
<script type="text/javascript">
$(function(){
	/* $("#en_name").blur(function () {		
		$.getJSON("${request.contextPath}${namespace?default('')}/agency/agency-listagency.json?agency_name="+$('#en_name').val(),function(result){
			if(result!=null&&result.name!=$('#hid_name').val()){
				alert("代理名重复,请重新输入");
			}
		})
	    
	});  */
})

</script>